package com.nacos.nacosconsumer;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author wenl
 * @version V2.0
 * @project 自己的框架
 * @package com.nacos.nacosconsumer
 * @date 2020/4/2
 * @describe
 */

@FeignClient(name = "nacos-producer", fallback = EchoRemoterHystrix.class)
public interface EchoRemoter {

    @GetMapping("/echo/{name}")
    String echo(@PathVariable String name);
}
